<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
    <script src="socket.io.js"></script>
</head>
<body>
<div>
    <textarea style="width: 100%;" rows="20"></textarea>
</div>
<form>
    <input type="text" required name="input">
    <input type="submit" value="发送">
</form>

<script src="chat.js"></script>
</body>
</html>